﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DungeonMaker
{
    /// <summary>
    /// 0x00 Door
    /// 0x01 Creature
    /// 0x02 Entrence
    /// 0x03 Exit
    /// 0x04 Item
    /// 0x05 Static
    /// </summary>
    public enum EntityType : byte
    {
        Door, Creature, Entrence, Exit, Item, Static
    }
    class Entity
    {

        public Position pos;
        //public Position worldPos;
        public char symbol;
        //public string name;
        public EntityType type;



        /// <summary>
        /// Entity that will be renderd by its world pos and relavent to is local position. also contains logic on what type of entity it is. 
        /// </summary>
        /// <param name="symbol"> input a char that will define the object on the screen</param>
        /// <param name="pos">local position if the world pos is the same as the player</param>
        /// <param name="type">What type, can handle byte codes</param>
        public Entity(char symbol, Position pos, EntityType type = EntityType.Static)
        {

            this.symbol = symbol;
            this.pos = pos;
            //this.worldPos = world;
            this.type = type;

        }

    }
}
